A government official was shot dead and another critically injured by an alleged gunman inside the premises of a federal court in Las Vegas.